package
{
	import com.gskinner.motion.GTween;
	import com.gskinner.motion.easing.Sine;
	
	
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	

	public class Slider extends MovieClip
	{
		public var obj:Object = this;
		public var t1:GTween;

		public function Slider()
		{
			obj.alpha = 0.5;
			addEventListener(MouseEvent.MOUSE_OVER,overSlider);
			addEventListener(MouseEvent.MOUSE_OUT,outSlider);
			
			t1 = new GTween(obj, 0.8, { alpha:obj.alpha}, {ease:Sine.easeInOut});

			
		}
		
		public function overSlider(e:MouseEvent):void
		{
		
		
		trace('over');
		
		t1.proxy.alpha = 1;

		
		}

		public function outSlider(e:MouseEvent):void
		{
		trace('out');
		
		t1.proxy.alpha = 0.5;

		}	
		
		
	}
}